package io.renren.modules.zhihu.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.zhihu.dao.QuestionMonitorDao;
import io.renren.modules.zhihu.entity.QuestionMonitorEntity;
import io.renren.modules.zhihu.service.QuestionMonitorService;


@Service("questionMonitorService")
public class QuestionMonitorServiceImpl extends ServiceImpl<QuestionMonitorDao, QuestionMonitorEntity> implements QuestionMonitorService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<QuestionMonitorEntity> page = this.page(
                new Query<QuestionMonitorEntity>().getPage(params),
                new QueryWrapper<QuestionMonitorEntity>()
        );

        return new PageUtils(page);
    }

}